%!  Copyright 2023 Liqing Elaina Shi（石礼晴）
%!  Document under the terms of the Creative Commons
%!  Attribution 4.0 International (CC BY 4.0)
%!  http://creativecommons.org/licenses/by/4.0/
%!  Permission is granted to copy, distribute and/or modify this

%   Coverpage for guidebook of Magicat v1.0




%   Define some colors used in the coverpage beforehand.
\definecolor{titlepagecolor}{HTML}{8767B6}                  %!  RGB = (135,103,182)
\definecolor{titlefontcolor}{HTML}{F3CF9B}                  %!  RGB = (243,207,155)

%   Loading titlepage environment.
\begin{titlepage}
    \vspace*{\fill}
    \begin{figure}[h]   %!  Introduce figure of coverpage.
        \centering
        \includegraphics[width=10cm]{coverpage_sweep_tosho.png}
    \end{figure}
    \vspace*{\fill}
    \begin{tcolorbox}[
        colback  = titlepagecolor!70,
        colframe = titlepagecolor,
        boxrule  = 1.5mm
    ]
        \begin{center}
            \Huge{\textcolor{titlefontcolor}{\bfseries{Magicat模板使用指南}}} \\                %!  title
            \LARGE{\textcolor{titlefontcolor}{\DavidStar \bfseries{石礼晴} \DavidStar}}     %!  author
        \end{center}
    \end{tcolorbox}
    \vspace*{\fill}
    \clearpage              %!  Loading inside page.
    \thispagestyle{empty}   %!  Remove pagenumber of inside page (this function of titlepage has been implemented in the main file guidebook.tex).
    \begin{center}
        \vspace*{\fill}
        \curlyframe{\begin{center}
            \Large{\bfseries{编译日期：\today}}     %!  Compilation date, \today is modified by isodate.
        \end{center}}
        \vspace*{\fill}
        \begin{tabular*}{\textwidth}{ccc}           %!  Introduce CC-BY 4.0.
            \includegraphics{coverpage_ccby.png}
            &   \begin{minipage}[b]{0.75\textwidth}
                    \small{\textsf{本作品采用知识共享署名4.0国际许可协议，访问 \href{http://creativecommons.org/licenses/by/4.0/}{creativecommons} 查看该许可协议。}}
                \end{minipage}
            \end{tabular*}
    \end{center}
    \cleardoublepage
\end{titlepage}